package org.example.json;

import org.example.entity.AbstractCodeModel;

public class AbstractCodeJsonConverter<M extends AbstractCodeModel,J extends AbstractCodeJson> extends AbstractJsonConverter<M, J>
{

  public AbstractCodeJsonConverter()
  {
    super();
  }

  @Override
  public M modelToJson(J src, M dst)
  {
    dst = super.modelToJson(src, dst);
    dst.setCode(src.getCode());
    return dst;
  }

  @Override
  public J jsonToModel(M src, J dst)
  {
    dst = super.jsonToModel(src, dst);
    dst.setCode(src.getCode());
    return dst;
  }
  
  

}
